/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upf.grupof.projectphotos.messagesys;

import org.jivesoftware.smackx.filetransfer.FileTransferListener;
import org.jivesoftware.smackx.filetransfer.FileTransferRequest;


/**
 *
 * @author fredi
 */
public class FileReceiver implements FileTransferListener {

    private InstantMessage im;
    private String path;
    
    public FileReceiver(InstantMessage im, String path){
        this.im=im;
        this.path=path;
    }
    public void fileTransferRequest(FileTransferRequest ftr) {
        ThreadR thr = new ThreadR(im, ftr, path);
        thr.start();
    }
    
}
